package CocoFood.DTO;

import java.io.Serializable;
import java.sql.Date;
import java.util.ArrayList;

public class TisoNamingTaxonomyTO implements Serializable {

    private long id;
    private long namingId;
    private long parentId;
    private String cnName;
    private String enName;
    private String vnName;
    private String cnDescription;
    private String enDescription;
    private String vnDescription;
    private Date modifiedDate;
    private String modifiedBy;
    private String status;
    private String remark;
    private TisoNamingTaxonomyTO parentTO;
    private ArrayList<TisoNamingTaxonomyTO> listChildTO;
    private ArrayList<TisoMediaTO> listMediaTO;

    public TisoNamingTaxonomyTO() {
    }

    public TisoNamingTaxonomyTO(long id, long namingId, long parentId, String cnName, String enName, String vnName, String cnDescription, String enDescription, String vnDescription, Date modifiedDate, String modifiedBy, String status, String remark) {
        this.id = id;
        this.namingId = namingId;
        this.parentId = parentId;
        this.cnName = cnName;
        this.enName = enName;
        this.vnName = vnName;
        this.cnDescription = cnDescription;
        this.enDescription = enDescription;
        this.vnDescription = vnDescription;
        this.modifiedDate = modifiedDate;
        this.modifiedBy = modifiedBy;
        this.status = status;
        this.remark = remark;


    }

    public TisoNamingTaxonomyTO(long id, long namingId, long parentId, String cnName, String enName, String vnName, String cnDescription, String enDescription, String vnDescription, Date modifiedDate, String modifiedBy, String status, String remark, TisoNamingTaxonomyTO parentTO) {
        this.id = id;
        this.namingId = namingId;
        this.parentId = parentId;
        this.cnName = cnName;
        this.enName = enName;
        this.vnName = vnName;
        this.cnDescription = cnDescription;
        this.enDescription = enDescription;
        this.vnDescription = vnDescription;
        this.modifiedDate = modifiedDate;
        this.modifiedBy = modifiedBy;
        this.status = status;
        this.remark = remark;
        this.parentTO = parentTO;

    }

    public TisoNamingTaxonomyTO(long id, long namingId, long parentId, String cnName, String enName, String vnName, String cnDescription, String enDescription, String vnDescription, Date modifiedDate, String modifiedBy, String status, String remark, TisoNamingTaxonomyTO parentTO, ArrayList<TisoNamingTaxonomyTO> listChildTO, ArrayList<TisoMediaTO> listMediaTO) {
        this.id = id;
        this.namingId = namingId;
        this.parentId = parentId;
        this.cnName = cnName;
        this.enName = enName;
        this.vnName = vnName;
        this.cnDescription = cnDescription;
        this.enDescription = enDescription;
        this.vnDescription = vnDescription;
        this.modifiedDate = modifiedDate;
        this.modifiedBy = modifiedBy;
        this.status = status;
        this.remark = remark;
        this.parentTO = parentTO;
        this.listChildTO = listChildTO;
        this.listMediaTO = listMediaTO;
    }

    public String getCnDescription() {
        return cnDescription;
    }

    public void setCnDescription(String cnDescription) {
        this.cnDescription = cnDescription;
    }

    public String getCnName() {
        return cnName;
    }

    public void setCnName(String cnName) {
        this.cnName = cnName;
    }

    public String getEnDescription() {
        return enDescription;
    }

    public void setEnDescription(String enDescription) {
        this.enDescription = enDescription;
    }

    public String getEnName() {
        return enName;
    }

    public void setEnName(String enName) {
        this.enName = enName;
    }

    public ArrayList<TisoNamingTaxonomyTO> getListChildTO() {
        return listChildTO;
    }

    public void setListChildTO(ArrayList<TisoNamingTaxonomyTO> listChildTO) {
        this.listChildTO = listChildTO;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public ArrayList<TisoMediaTO> getListMediaTO() {
        return listMediaTO;
    }

    public void setListMediaTO(ArrayList<TisoMediaTO> listMediaTO) {
        this.listMediaTO = listMediaTO;
    }

    public String getModifiedBy() {
        return modifiedBy;
    }

    public void setModifiedBy(String modifiedBy) {
        this.modifiedBy = modifiedBy;
    }

    public Date getModifiedDate() {
        return modifiedDate;
    }

    public void setModifiedDate(Date modifiedDate) {
        this.modifiedDate = modifiedDate;
    }

    public long getParentId() {
        return parentId;
    }

    public void setParentId(long parentId) {
        this.parentId = parentId;
    }

    public TisoNamingTaxonomyTO getParentTO() {
        return parentTO;
    }

    public void setParentTO(TisoNamingTaxonomyTO parentTO) {
        this.parentTO = parentTO;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getVnDescription() {
        return vnDescription;
    }

    public void setVnDescription(String vnDescription) {
        this.vnDescription = vnDescription;
    }

    public String getVnName() {
        return vnName;
    }

    public void setVnName(String vnName) {
        this.vnName = vnName;
    }

    public long getNamingId() {
        return namingId;
    }

    public void setNamingId(long namingId) {
        this.namingId = namingId;
    }

    public boolean containIn(ArrayList<TisoNamingTaxonomyTO> businessType) {
        for (TisoNamingTaxonomyTO namingTaxonomyTO : businessType) {
            if (id == namingTaxonomyTO.getId()) {
                return true;
            }
        }
        return false;
    }
}
